
var should = require('should');
var coding = require('../lib/coding');

describe('Coding', function() {

	describe('#encode()', function() {
		it('correct encode', function() {
			coding
				.encode("Мир")
				.should.be.equal("110100001001110011010000101110001101000110000000");
		});
	});

	describe('#decode()', function() {
		it('correct decode', function() {
			coding
				.decode("110100001001110011010000101110001101000110000000")
				.should.be.equal("Мир");
		});
	});
});
